<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnRemarkInEntityTable extends AbstractMigration
{
    public function up()
    {
        $this->table('entity')
            ->addColumn('remark', 'text', ['null' => true, 'comment' => '备注'])
            ->save();
    }

    public function down()
    {
        $this->table('entity')
            ->removeColumn('remark')
            ->save();
    }
}
